package cn.tedu.travelsystem.transport.mapper;

import cn.tedu.travelsystem.transport.pojo.entity.Transport;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

@Mapper
public interface TransportMapper {
    int insert(Transport transport);
    int deleteById(Integer transport_id);
    int update(Transport transport);
    Transport selectById(Integer transport_id);
    List<Transport> selectAll();

//
    List<Transport> selectByBudget(@Param("maxBudget") BigDecimal maxBudget);
}